package com0625;

import com.sun.source.tree.ReturnTree;

public class Person {
    public String name;
    public String address="北京";
    public Person(String name){
        this.name = name ;
    }
    public void sing(){
        System.out.println(name+"在唱歌");
    }
    Person sing(String name){
        System.out.println(this.name+"在唱"+name+"歌曲");
        return new Person("admin");
    }
    public void sing(String name,int n){
        System.out.println(this.name+"在唱"+name+"歌曲，唱了"+n+"遍");
    }
    public void sing(int n,String name){
        System.out.println(this.name+"在唱"+name+"歌曲，唱了"+n+"遍。。。。。");
    }

    public static void main(String[] args) {
        Person p = new Person("刘德华");

        p.sing("中国人");
        p.sing(5,"金鱼和木鱼");
    }
}
